package com.yc.jpyy.base.util;

import java.util.Hashtable;
import java.util.List;
import java.util.Map;

/**
 * 
 * 记录微信菜单的eventKey
 * key=微信号appId
 * value=eventKey
 *
 */
public class UserCourseMemory {
	
	private static Hashtable<String,Object> hashTUserCourseMemory = new Hashtable<String,Object>();

	@SuppressWarnings("unchecked")
	public static List<Map<String, Object>> getEventKey(String key) {
		
		if (UserCourseMemory.hashTUserCourseMemory.get(key) == null || UserCourseMemory.hashTUserCourseMemory.get(key) == ""){
			return null;
		}
			
		
		return (List<Map<String, Object>>)UserCourseMemory.hashTUserCourseMemory.get(key);
	}

	public static void setEventKey(String key, Object value) {
		UserCourseMemory.hashTUserCourseMemory.put(key, value);
	}

}
